//配置路由
import { createRouter, createWebHistory } from 'vue-router'
let router=createRouter({
    history:createWebHistory(),
    routes:[

      {
        path:'/',
        redirect:'/AddView'
      },

      {
        path:'/AddView',
        component:()=>import('../views/AddView.vue')
      },
      {
        path:'/ShowView',
        component:()=>import('../views/ShowView.vue')
      }

    ]
})

//导出路由
export default router 
